package com.qdu.entity;

import java.util.List;

/**
 *
 * @author 19645
 */
public class Activity {
    private int id;
    private String activityId;             //活动编号
    private String auserId;             //创建人                         
    private String atype;           //活动类型
    private String aname;           //活动名称
    private String arank;           //活动所需用户等级
    private int anumber;            //活动人数
    private String adeadLine;       //活动报名截至时间，字符类型datetime
    private String astartTime;      //活动开始时间，字符类型datetime
    private String aendTime;        //活动结束时间，字符类型datetime
    private String astatus;         //活动状态
    private String aaddress;        //活动地址
    private String atransport;      //活动乘坐交通工具
    private String anote;           //备注
    private String acover;
    
    public Activity(){
        
    }
    
    //根据id获取活动所有信息，在活动详细页面获取所有的信息。
    public Activity(int id,String auserId,String atype,String aname,String arank,int anumber,String adeadLine,String astatus,String astartTime,String aendTime,String aaddress,String atransport,String anote,String activityId){
        this.id=id;
        this.auserId=auserId;
        this.atype=atype;
        this.aname=aname;
        this.arank=arank;
        this.anumber=anumber;
        this.adeadLine = adeadLine;
        this.astatus=astatus;
        this.astartTime=astartTime;
        this.aendTime=aendTime;
        this.aaddress=aaddress;
        this.atransport=atransport;
        this.anote=anote;
        this.activityId=activityId;
    }
    //增加
     public Activity(String auserId, String acover,String atype, String aname, String arank, int anumber, String adeadLine, String astartTime, String aendTime, String astatus, String aaddress, String atransport, String anote) {
        this.auserId = auserId;
        this.acover=acover;
        this.atype = atype;
        this.aname = aname;
        this.arank = arank;
        this.anumber = anumber;
        this.adeadLine = adeadLine;
        this.astartTime = astartTime;
        this.aendTime = aendTime;
        this.astatus = astatus;
        this.aaddress = aaddress;
        this.atransport = atransport;
        this.anote = anote;
    }
    //增加和更新
    public Activity(String auserId, String atype, String aname, String arank, int anumber, String adeadLine, String astartTime, String aendTime, String astatus, String aaddress, String atransport, String anote) {
        this.auserId = auserId;
        this.atype = atype;
        this.aname = aname;
        this.arank = arank;
        this.anumber = anumber;
        this.adeadLine = adeadLine;
        this.astartTime = astartTime;
        this.aendTime = aendTime;
        this.astatus = astatus;
        this.aaddress = aaddress;
        this.atransport = atransport;
        this.anote = anote;
    }
    
    //这个可以用于搜索后出现的活动列表，一共需要arank等级以上用户anumber人。
    /**
     * 
     * @param activityId
     * @param aname《h1》孤儿院送温暖《h1》
     * @param atype ：人文关怀/环境保护/岗位志愿者
     * @param arank 共需要多少等级多少人，什么时间(astartTime)开始，什么时间(aengTime)结束。
     * @param anumber 
     */
    public Activity(String activityId,String aname,String atype,String arank,int anumber,String astartTime,String aendTime){
        this.activityId=activityId;
        this.aname=aname;
        this.atype=atype;
        this.arank=arank;
        this.anumber=anumber;
        this.astartTime=astartTime;
        this.aendTime=aendTime;
    }
    
    //对应AllActivity页面
    public Activity(int id, String activityId, String auserId, String atype, String aname, String arank, int anumber, String adeadLine, String astatus, String astartTime, String aendTime, String aaddress, String atransport, String anote, String acover) {
        this.id = id;
        this.activityId = activityId;
        this.auserId = auserId;
        this.atype = atype;
        this.aname = aname;
        this.arank = arank;
        this.anumber = anumber;
        this.adeadLine = adeadLine;
        this.astartTime = astartTime;
        this.aendTime = aendTime;
        this.astatus = astatus;
        this.aaddress = aaddress;
        this.atransport = atransport;
        this.anote = anote;
        this.acover = acover;
    }
    
    public Activity(String activityId,String aname,String arank,int anumber,String acover){
        this.activityId=activityId;
        this.aname=aname;
        this.arank=arank;
        this.anumber=anumber;
        this.acover=acover;
    }

    
    
    
    public String getAcover() {
        return acover;
    }

    public void setAcover(String acover) {
        this.acover = acover;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    
    

    public String getAuserId() {
        return auserId;
    }

    public void setAuserId(String auserId) {
        this.auserId = auserId;
    }

    public String getAdeadLine() {
        return adeadLine;
    }

    public void setAdeadLine(String adeadLine) {
        this.adeadLine = adeadLine;
    }

    public String getAstartTime() {
        return astartTime;
    }

    public void setAstartTime(String astartTime) {
        this.astartTime = astartTime;
    }

    public String getAendTime() {
        return aendTime;
    }

    public void setAendTime(String aendTime) {
        this.aendTime = aendTime;
    }

    

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getAtype() {
        return atype;
    }

    public void setAtype(String atype) {
        this.atype = atype;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getArank() {
        return arank;
    }

    public void setArank(String arank) {
        this.arank = arank;
    }

    public int getAnumber() {
        return anumber;
    }

    public void setAnumber(int anumber) {
        this.anumber = anumber;
    }


    public String getAstatus() {
        return astatus;
    }

    public void setAstatus(String astatus) {
        this.astatus = astatus;
    }

    public String getAaddress() {
        return aaddress;
    }

    public void setAaddress(String aaddress) {
        this.aaddress = aaddress;
    }

    public String getAtransport() {
        return atransport;
    }

    public void setAtransport(String atransport) {
        this.atransport = atransport;
    }

    public String getAnote() {
        return anote;
    }

    public void setAnote(String anote) {
        this.anote = anote;
    }


}
